package com.tensai.study.java.opensource.hutool;

import cn.hutool.core.convert.Convert;
import org.junit.Test;

/**
 * Hutool端序测试
 * 转换类
 *
 * @author Tensai
 */
public class ConvertTest {

	@Test
	public void test() {
		byte[] bytes = new byte[]{(byte) 0xFF, (byte) 0x9b};
		sout(bytesToShort(bytes));
	}


	private Number bytesToShort(byte[] bytes) {
		return Convert.bytesToShort(bytes);
	}

	private void sout(Object o) {
		System.out.println(o);
	}
}
